package com.SmartCare.pojo.message;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 绑定老人消息表
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class MsgBindElder implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 唯一标识
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 养老院名
     */
    private String careHomeName;

    /**
     * 申请用户id
     */
    private Long userId;

    /**
     * 绑定老人的id
     */
    private Long elderId;

    /**
     * null：未处理；0：未通过；1：已通过
     */
    private Integer status;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;
}
